<template>
  <div class = "count1">
    <button @click = "num++" >点击修改props</button>
    <br/>
    <h1>{{num}}</h1>
    
  </div>
</template>

<script>
export default {
  name: "Count1",
  props:["num"],
}
</script>

<style>
.count1{
  background-color: aqua;
  height: 200px;
}
</style>